L=10000; S=1; T=5; M=100; stones=[4061,4062,4066,4065,4068,6356,4070,6832,4063,3688,4268,3854,4060,1530,3949,4064,1299,3377,2435,4069,2985,2978,2983,2986,2979,3235,2987,2751,3031,2981,4794,8545,3946,2988,6706,3718,9091,5657,5362,7000,4714,4713,7637,4718,4719,8677,4709,4710,8951,4711,6599,4717,4712,7558,940,7679,5401,4715,4716,9153,1018,1020,1016,1025,1024,1015,1019,7198,9163,1021,7944,1017,2594,1023,6139,2503,1022,2919,6712,1486,3740,3732,3733,2959,3731,3730,3736,2287,3737,1276,8941,3146,3735,6697,2884,9576,9134,9754,3734,3739];